package service;
import dao.OrderDao;
import dao.OrderItemDao;
import domain.Order;

import java.sql.SQLException;

public class OrderService {
    private OrderDao orderDao = new OrderDao();
    private OrderItemDao orderItemDao = new OrderItemDao();

    public void commitOrder(Order order) throws SQLException {
        orderDao.addOrder(order);
        orderItemDao.addOrderItem(order);
    }

    public void commitOrderItem() {

    }
}
